/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.clarice.homechef.service;

import com.clarice.homechef.dao.ChefDao;
import com.clarice.homechef.domain.Chef;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author Akshay Velhal
 */
@Service
public class ChefServiceImpl implements ChefService{

    @Autowired
    ChefDao chefDao;
    
    @Override
    public Chef getChefByEmail(String username) throws Exception {
        return chefDao.getChefByEmail(username);
    }

    @Override
    public Chef getChefRatings(int chefId) throws Exception {
        return chefDao.getChefRatings(chefId);
    }

    @Override
    public Chef getChefById(int chefId) throws Exception {
        return chefDao.getChefById(chefId);
    }
    
}
